"use strict";

Object.defineProperty(exports, "__esModule", {
    value: true
});
exports.default = getWindowWidth;
/**
 * 兼容性封装
 * 浏览器视口的宽度
 * @returns {number}
 */
function getWindowWidth() {
    var windowWidth = 0;
    if (document.compatMode == "CSS1Compat") {
        windowWidth = document.documentElement.clientWidth;
    } else {
        windowWidth = document.body.clientWidth;
    }
    return windowWidth;
}